import { createRouter, createWebHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView,
  },
  {
    path: '/editor',
    name: 'editor',
    component: () =>
      import(/* webpackChunkName: "editor" */ '../views/editor/index.vue'),
  },
  {
    path: '/scaleDrag',
    name: 'scaleDrag',
    component: () =>
      import(
        /* webpackChunkName: "scaleDrag" */ '../views/scaleDrag/scaleDrag.vue'
      ),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
